/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 题库Entity
 * @author 程展峰
 * @version 2021-09-18
 */
public class BQuestionBank extends DataEntity<BQuestionBank> {
	
	private static final long serialVersionUID = 1L;
	private String tenantId;		// tenant_id
	private String stem;		// 题干
	private String answer;		// 答案
	private String answerId;		// 答案ID
	private String exercType;		// 题型  0001单选题 0002多选题 0003判断题
	private String classify;		// 分类  预留
	private Integer grade;		// 分级 预留
	private Long sort;		// 题目排序
	private Long typeSort;		// 题型内排序
	private String keyWord;		// 关键字 预留

	private BAnswerBank[] optionalAnswers; //可選答案   //聯合查詢

	private int groupSort; //組内排序  被分到一組的時候的位於當前組的排序    (不一定提供實現)


	public int getGroupSort() {
		return groupSort;
	}

	public void setGroupSort(int groupSort) {
		this.groupSort = groupSort;
	}

	public BAnswerBank[] getOptionalAnswers() {
		return optionalAnswers;
	}

	public void setOptionalAnswers(BAnswerBank[] optionalAnswers) {
		this.optionalAnswers = optionalAnswers;
	}

	public BQuestionBank() {
		super();
	}

	public BQuestionBank(String id){
		super(id);
	}

	@Length(min=0, max=64, message="tenant_id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
	@Length(min=0, max=255, message="题干长度必须介于 0 和 255 之间")
	public String getStem() {
		return stem;
	}

	public void setStem(String stem) {
		this.stem = stem;
	}
	
	@Length(min=0, max=255, message="答案长度必须介于 0 和 255 之间")
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	@Length(min=0, max=64, message="答案ID长度必须介于 0 和 64 之间")
	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}
	
	@Length(min=0, max=12, message="题型  0001单选题 0002多选题 0003判断题长度必须介于 0 和 12 之间")
	public String getExercType() {
		return exercType;
	}

	public void setExercType(String exercType) {
		this.exercType = exercType;
	}
	
	@Length(min=0, max=255, message="分类  预留长度必须介于 0 和 255 之间")
	public String getClassify() {
		return classify;
	}

	public void setClassify(String classify) {
		this.classify = classify;
	}
	
	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	
	public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}
	
	public Long getTypeSort() {
		return typeSort;
	}

	public void setTypeSort(Long typeSort) {
		this.typeSort = typeSort;
	}
	
	@Length(min=0, max=255, message="关键字 预留长度必须介于 0 和 255 之间")
	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	
}